package com.example.ujsfish.utils;


import java.util.ArrayList;
import java.util.List;

public class DeviceName {

    private  volatile static DeviceName deviceInstance = null;
    private static List<String> deviceId = new ArrayList<>();


    private DeviceName(){

    }

    public static DeviceName getDeviceInstance(){
        if (deviceInstance == null){
            synchronized (DeviceName.class){
                deviceInstance = new DeviceName();
            }
        }
        return deviceInstance;
    }

    public List<String> getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(List<String> deviceId) {
        DeviceName.deviceId = deviceId;
    }

    public void clearDeviceId(){
        deviceId.clear();
    }
}
